﻿namespace CSW.Framework.UI.Binding
{
    /// <summary>
    /// Describes how errors are shown. See <see cref="Binder"/> and <see cref="EditFormBinder&lt;T&gt;"/>.
    /// </summary>
    public enum ShowErrors
    {
        /// <summary>
        /// Show errors once the control has validated.
        /// </summary>
        Immediately,
        /// <summary>
        /// Same behavior as <see cref="Immediately"/> except errors are
        /// not shown on controls until after the first save is attempted.
        /// </summary>
        AfterSave
    }
}
